package com.common.jiji;


import com.common.jiji.entity.BaseJJBean;
import com.common.jiji.entity.JJOrderListBean;
import com.common.jiji.entity.JJorderDelBean;
import com.common.jiji.entity.JJuserInfoBean;
import com.common.jiji.entity.LoginBean;
import com.common.jiji.parms.JiedanParms;
import com.common.jiji.parms.LoginParms;
import com.common.jiji.parms.OrderDelJiedanParms;
import com.common.jiji.parms.OrderDelParms;
import com.common.jiji.parms.OrderDellistParms;
import com.common.jiji.parms.OrderParms;


import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/10/12.
 */

public interface JJDriverService {



    @POST("loginDriver")
    Observable<LoginBean> loginDriver(
            @Body LoginParms params
    );

    @POST("openOrCloseOrder")
    Observable<BaseJJBean> openOrCloseOrder(
            @Body JiedanParms params
    );
    @POST("getOrderListNow")
    Observable<JJOrderListBean> getOrderListNow(
                    @Body OrderParms params
            );

    @POST("getOrderDetailByOrderId")
    Observable<JJorderDelBean> getOrderDetailByOrderId(
            @Body OrderDelParms params
    );
    @POST("beginOrderNow")
    Observable<BaseJJBean> beginOrderNow(
            @Body OrderDelJiedanParms params
    );
    @POST("endOrderNow")
    Observable<BaseJJBean> endOrderNow(
            @Body OrderDelParms params
    );


    @POST("getDriverInfo")
    Observable<JJuserInfoBean> getDriverInfo(
    );

    @POST("getOrderListByDate")
    Observable<BaseJJBean> getOrderListByDate(
            @Body OrderDellistParms params
    );

}
